\hypertarget{classdev_1_1net_1_1_tcp_server}{}\section{dev\+:\+:net\+:\+:Tcp\+Server Class Reference}
\label{classdev_1_1net_1_1_tcp_server}\index{dev\+::net\+::\+Tcp\+Server@{dev\+::net\+::\+Tcp\+Server}}


{\ttfamily \#include $<$Tcp\+Server.\+hpp$>$}

Inheritance diagram for dev\+:\+:net\+:\+:Tcp\+Server\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classdev_1_1net_1_1_tcp_server}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structdev_1_1net_1_1_tcp_server_1_1_statics}{Statics}
\end{DoxyCompactItemize}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a82038ef30d8889c4e8a79ecdfb45d5ea}{}enum {\bfseries Options} \{ \\*
{\bfseries C\+O\+N\+N\+I\+S\+S\+I\+Z\+E} = 1, 
{\bfseries C\+O\+N\+N\+O\+S\+S\+I\+Z\+E}, 
{\bfseries W\+O\+R\+K\+E\+R\+N\+U\+M}, 
{\bfseries M\+A\+S\+T\+E\+R\+A\+S\+W\+O\+R\+K\+E\+R}, 
\\*
{\bfseries C\+O\+N\+N\+H\+E\+A\+R\+T\+B\+E\+A\+T\+T\+I\+M\+E}, 
{\bfseries F\+R\+A\+M\+E\+T\+I\+M\+E}, 
{\bfseries L\+O\+G\+G\+E\+R}, 
{\bfseries M\+A\+S\+T\+E\+R\+F\+R\+A\+M\+E\+T\+I\+M\+E}
 \}\label{classdev_1_1net_1_1_tcp_server_a82038ef30d8889c4e8a79ecdfb45d5ea}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_aa2ef40de7fbb3532183817ddf22fb077}{}enum {\bfseries Status} \{ {\bfseries R\+E\+A\+D\+Y} = 1, 
{\bfseries R\+U\+N\+N\+I\+N\+G}, 
{\bfseries E\+X\+I\+T\+I\+N\+G}, 
{\bfseries E\+X\+I\+T}
 \}\label{classdev_1_1net_1_1_tcp_server_aa2ef40de7fbb3532183817ddf22fb077}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a07de65eb836064e847e6c1aef180704f}{}typedef boost\+::function$<$ void(Tcp\+Connection\+Ptr \&)$>$ {\bfseries Pass\+Tcp\+Connection\+Ptr\+Ref\+C\+B}\label{classdev_1_1net_1_1_tcp_server_a07de65eb836064e847e6c1aef180704f}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a5e12ddbe0887babe28e48e262a94187a}{}typedef boost\+::function$<$ void(\hyperlink{classdev_1_1net_1_1_tcp_connection}{Tcp\+Connection} \&, \hyperlink{classdev_1_1net_1_1_tcp_connection_input_stream}{Tcp\+Connection\+Input\+Stream} \&)$>$ {\bfseries Input\+Tcp\+Message\+C\+B}\label{classdev_1_1net_1_1_tcp_server_a5e12ddbe0887babe28e48e262a94187a}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_ae8ae9c2ec2c86bf61293f7295212e3e9}{}typedef boost\+::function$<$ void(\hyperlink{classdev_1_1net_1_1_tcp_connection}{Tcp\+Connection} \&)$>$ {\bfseries Pass\+Tcp\+Connection\+Ref\+C\+B}\label{classdev_1_1net_1_1_tcp_server_ae8ae9c2ec2c86bf61293f7295212e3e9}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a8ab342f7271a6ec0faebd41b73ba01db}{}{\bfseries Tcp\+Server} (\hyperlink{classdev_1_1net_1_1_event_loop}{Event\+Loop} \&event\+Loop)\label{classdev_1_1net_1_1_tcp_server_a8ab342f7271a6ec0faebd41b73ba01db}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_afc40c8a3ac309ae92182de21a014d4cd}{}bool {\bfseries open} (const char $\ast$addr, int port, int backlog)\label{classdev_1_1net_1_1_tcp_server_afc40c8a3ac309ae92182de21a014d4cd}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_ae67b41a11acb5d88fbec1381db9519a5}{}bool {\bfseries reopen\+Acceptor} (void)\label{classdev_1_1net_1_1_tcp_server_ae67b41a11acb5d88fbec1381db9519a5}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_aaaed3e34567944fa4ae5dcf9cab432f1}{}void {\bfseries shutdown\+Acceptor} (void)\label{classdev_1_1net_1_1_tcp_server_aaaed3e34567944fa4ae5dcf9cab432f1}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a3a1dad7975f87e158b8a7593e1fe9f2c}{}void {\bfseries config} (Options optname, size\+\_\+t val)\label{classdev_1_1net_1_1_tcp_server_a3a1dad7975f87e158b8a7593e1fe9f2c}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a7441e489b1a31c26bf882e9db666ede7}{}void {\bfseries config} (Options optname, base\+::\+Logger\+Ptr logger)\label{classdev_1_1net_1_1_tcp_server_a7441e489b1a31c26bf882e9db666ede7}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a8858c03e9c473d4a8313315c267fef28}{}void {\bfseries close} (void)\label{classdev_1_1net_1_1_tcp_server_a8858c03e9c473d4a8313315c267fef28}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a432e4a15b95070be15e209c8df1388e0}{}Status {\bfseries get\+Status} (void) const \label{classdev_1_1net_1_1_tcp_server_a432e4a15b95070be15e209c8df1388e0}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a5e220d5f8583a8a2f0f051a3569d9202}{}\hyperlink{classdev_1_1net_1_1_event_loop}{Event\+Loop} \& {\bfseries get\+Loop} ()\label{classdev_1_1net_1_1_tcp_server_a5e220d5f8583a8a2f0f051a3569d9202}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a4f658200172e25adc9742d5898898954}{}base\+::\+Logger\+Ptr \& {\bfseries get\+Logger} ()\label{classdev_1_1net_1_1_tcp_server_a4f658200172e25adc9742d5898898954}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_abe3b79a95b08b5c7a919a3b2e76bd9af}{}void {\bfseries get\+Statics} (struct \hyperlink{structdev_1_1net_1_1_tcp_server_1_1_statics}{Statics} \&statics)\label{classdev_1_1net_1_1_tcp_server_abe3b79a95b08b5c7a919a3b2e76bd9af}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_adb44994cacaadcea458dbb71b8e61bde}{}void {\bfseries set\+Connection\+Established\+Callback} (Pass\+Tcp\+Connection\+Ptr\+Ref\+C\+B callback)\label{classdev_1_1net_1_1_tcp_server_adb44994cacaadcea458dbb71b8e61bde}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a62e73a62349fdd62215f96afd0f3d38e}{}void {\bfseries set\+Message\+Callback} (Input\+Tcp\+Message\+C\+B callback)\label{classdev_1_1net_1_1_tcp_server_a62e73a62349fdd62215f96afd0f3d38e}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a6cd08dbc08ba2531651c7b5a7f12bd3b}{}void {\bfseries set\+Connection\+Error\+Callback} (Pass\+Tcp\+Connection\+Ref\+C\+B callback)\label{classdev_1_1net_1_1_tcp_server_a6cd08dbc08ba2531651c7b5a7f12bd3b}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a8a0d9ffedf373a1273956ed8e18bd7cd}{}void {\bfseries set\+Connection\+Closing\+Callback} (Pass\+Tcp\+Connection\+Ref\+C\+B callback)\label{classdev_1_1net_1_1_tcp_server_a8a0d9ffedf373a1273956ed8e18bd7cd}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a0b77dbdf103adc58fd3010e00087b103}{}void {\bfseries set\+Connection\+Heart\+Beat\+Callback} (Pass\+Tcp\+Connection\+Ref\+C\+B callback)\label{classdev_1_1net_1_1_tcp_server_a0b77dbdf103adc58fd3010e00087b103}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a45b3761f9b4e3a99343505146e62bd5d}{}void {\bfseries set\+Connection\+Writable\+Callback} (Pass\+Tcp\+Connection\+Ref\+C\+B callback)\label{classdev_1_1net_1_1_tcp_server_a45b3761f9b4e3a99343505146e62bd5d}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a93f1dff4b167baec889fb7c2141ba3a5}{}void {\bfseries set\+Connecion\+Factory} (Tcp\+Connection\+Factory\+Ptr factory)\label{classdev_1_1net_1_1_tcp_server_a93f1dff4b167baec889fb7c2141ba3a5}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a4c5d62a3aaa403f88ca0dabd1f3e9b9a}{}void {\bfseries set\+Server\+Shutdown\+Callback} (boost\+::function$<$ void(void)$>$ callback)\label{classdev_1_1net_1_1_tcp_server_a4c5d62a3aaa403f88ca0dabd1f3e9b9a}

\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdev_1_1net_1_1_tcp_server_a43fe1eaa6c6b4d4ecbb2ba361d312b66}{}class {\bfseries Tcp\+Connection}\label{classdev_1_1net_1_1_tcp_server_a43fe1eaa6c6b4d4ecbb2ba361d312b66}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Tcp服务器 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
dev/dev/net/Tcp\+Server.\+hpp\item 
dev/src/net/Tcp\+Server.\+cpp\end{DoxyCompactItemize}
